package com.hitqz.robot.api.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 机器人管理表
 *
 * @author robot
 * @date 2024-06-06 15:18:09
 */
@Data
@TableName("robot")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "机器人管理表")
public class RobotEntity extends Model<RobotEntity> {


	/**
	* 主键id
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="主键id")
    private Integer id;

	/**
	* 地图编码
	*/
    @Schema(description="地图编码")
    private String mapCode;

	@TableField(exist = false)
	@Schema(description="地图名称")
	private String mapName;

	/**
	* 机器人名称
	*/
    @Schema(description="机器人名称")
    private String robotName;

	/**
	* 机器人编码
	*/
    @Schema(description="机器人编码")
    private String robotSn;

	/**
	* ip地址
	*/
    @Schema(description="ip地址")
    private String ipAddress;

	/**
	* 充电阈值
	*/
    @Schema(description="充电阈值")
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer chargeThreshold;

	/**
	* 调度组群id
	*/
    @Schema(description="调度组群id")
    private Integer groupId;

	/**
	 * 调度组群名称
	 */
	@Schema(description="调度组群名称")
	@TableField(exist = false)
	private String groupName;
}